// 导入vue和vuex
import Vue from 'vue'
import Vuex from 'vuex'

import moduleCart from './cart.js'

import moduleUser from './user.js'

//2.将Vuex安装为vue插件
Vue.use(Vuex)

//3.创建Store的实例对象
const store = new Vuex.Store({
	//TODO:挂载store模块
	modules: {
		m_cart: moduleCart,
		
		m_user: moduleUser,
	},
})

//4.向外共享Store的实例对象
export default store